﻿using Shared.JwtHelper;
using System;
using System.Security.Claims;

namespace Users.IDomain
{
    /// <summary>
    /// 证书颁发服务
    /// </summary>
    public interface IAuthenticate : Shared.Contracts.IDependency
    {
        /// <summary>
        /// 对用户身份进行认证
        /// </summary>
        /// <param name="user"></param>
        /// <param name="token"></param>
        /// <returns>
        /// 返回token
        /// </returns>
        JwtToken TokenAuthenticated(Users.DTO.User user);
    }
}
